package com.gxedu.springenvironmentconfig;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
public class SpringEnvironmentConfigApplication {

    public static void main(String[] args) {
//        ConfigurableApplicationContext applicationContext = SpringApplication.run(SpringEnvironmentConfigApplication.class, args);
        SpringApplication springApplication=new
                SpringApplication(SpringEnvironmentConfigApplication.class);
        Map<String,Object> map = new HashMap<>();
        map.put("test","liu_gx");
        springApplication.setDefaultProperties(map);
        springApplication.run(args);

    }
}
